package io.github.fb513.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户关系日志表
 * </p>
 *
 * @author fengbo
 * @since 2023-12-31
 */
@Getter
@Setter
@TableName("im_friendship_log")
public class FriendshipLog {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * im_user表主键，关系拥有者
     */
    private Long ownerId;

    /**
     * im_user表主键，好友
     */
    private Long friendId;

    /**
     * 创建时间
     */
    private LocalDateTime createdOn;

    /**
     * 列名
     */
    private String columnName;

    /**
     * 前值
     */
    private String beforeValue;

    /**
     * 后值
     */
    private String afterValue;


}
